package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the VW_SYNC_UNDUE_RENT database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_UNDUE_RENT")
@NamedQueries({
    @NamedQuery(name = "VwSyncUndueRent.findAll", query = " SELECT c FROM VwSyncUndueRent c "),
    @NamedQuery(name = "VwSyncUndueRent.findById", query = " SELECT c FROM VwSyncUndueRent c WHERE c.syncPkId = :Id "),
    @NamedQuery(name = "VwSyncUndueRent.findByStatus", query = " SELECT c FROM VwSyncUndueRent c WHERE c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncUndueRent.findByDocumentNo", query = " SELECT c FROM VwSyncUndueRent c WHERE c.company = :company And c.project =:project And c.contractRefNo = :contractRefNo And c.refInvoiceNo = :refInvoiceNo And c.status = :status And c.syncIsstaging = :syncIsstaging")
})
public class VwSyncUndueRent extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SYNC_PK_ID", length=100)
	private String syncPkId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="CONTRACT_UNIT_PERIODS_ID", length=4000)
	private String contractUnitPeriodsId;

	@Column(name="BILLING_CODE", nullable=false, length=30)
	private String billingCode;

	@Column(name="BUILDING_PHASE_CODE", nullable=false, length=30)
	private String buildingPhaseCode;

	@Column(name="CHARGE_CODE", length=2)
	private String chargeCode;	

	@Column(nullable=false, length=2)
	private String company;

	@Column(name="CONTRACT_NO", nullable=false, precision=6)
	private Long contractNo;

	@Column(name="CONTRACT_REF_NO", length=4000)
	private String contractRefNo;

	@Column(name="CONTRACT_SEQ", nullable=false, precision=6)
	private long contractSeq;

	@Column(name="CONTRACT_SERIES", nullable=false, length=4)
	private String contractSeries;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Column(name="CREATED_BY_NAME", length=4000)
	private String createdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(length=3)
	private String currency;

	@Column(name="CUSTOMER_CODE", length=30)
	private String customerCode;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="DATE_ON_INVOICE")
	private Date dateOnInvoice;

	@Column(length=4000)
	private String description;

	@Column(name="EXCHANGE_RATE", precision=22)
	private BigDecimal exchangeRate;

	@Column(name="FLOOR_ZONE_CODE", length=30)
	private String floorZoneCode;

	@Column(name="INTERFACE_NO", length=4000)
	private String interfaceNo;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Column(name="LAST_UPD_BY_NAME", length=4000)
	private String lastUpdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(nullable=false, length=30)
	private String project;

	@Column(name="PROJECT_NAME", length=4000)
	private String projectName;

	@Column(name="PROPERTY_TYPE_CODE", nullable=false, length=30)
	private String propertyTypeCode;

	@Column(length=300)
	private String remarks;

	@Column(name="REVISION_NUMBER", nullable=false, precision=3)
	private long revisionNumber;

	@Column(name="SAP_COMPANY_CODE", length=4000)
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE", length=4000)
	private String sapPlantCode;

	@Column(name="SEQ_NO", nullable=false, precision=22)
	private long seqNo;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING", length=1)
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TYPE_OF_CONTRACT", nullable=false, length=2)
	private String typeOfContract;

	@Column(name="UNDUE_PERIOD_AMOUNT", precision=16, scale=2)
	private BigDecimal unduePeriodAmount;

	@Column(name="UNIT_NUMBER", nullable=false, length=30)
	private String unitNumber;
	
	@Column(name="REF_INVOICE_NO")
	private String refInvoiceNo;
	
	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="FROM_DATE")
	private Date fromDate;
	
	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="TO_DATE")
	private Date toDate;

    public VwSyncUndueRent() {
    }
    
    
	/**
	 * @return the syncPkId
	 */
	public String getSyncPkId() {
		return syncPkId;
	}



	/**
	 * @param syncPkId the syncPkId to set
	 */
	public void setSyncPkId(String syncPkId) {
		this.syncPkId = syncPkId;
	}



	/**
	 * @return the fromDate
	 */
	public Date getFromDate() {
		return fromDate;
	}



	/**
	 * @param fromDate the fromDate to set
	 */
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}



	/**
	 * @return the toDate
	 */
	public Date getToDate() {
		return toDate;
	}



	/**
	 * @param toDate the toDate to set
	 */
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}



	/**
	 * @return the refInvoiceNo
	 */
	public String getRefInvoiceNo() {
		return refInvoiceNo;
	}



	/**
	 * @param refInvoiceNo the refInvoiceNo to set
	 */
	public void setRefInvoiceNo(String refInvoiceNo) {
		this.refInvoiceNo = refInvoiceNo;
	}



	public String getBillingCode() {
		return this.billingCode;
	}

	public void setBillingCode(String billingCode) {
		this.billingCode = billingCode;
	}

	public String getBuildingPhaseCode() {
		return this.buildingPhaseCode;
	}

	public void setBuildingPhaseCode(String buildingPhaseCode) {
		this.buildingPhaseCode = buildingPhaseCode;
	}

	public String getChargeCode() {
		return this.chargeCode;
	}

	public void setChargeCode(String chargeCode) {
		this.chargeCode = chargeCode;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Long getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(Long contractNo) {
		this.contractNo = contractNo;
	}

	public String getContractRefNo() {
		return this.contractRefNo;
	}

	public void setContractRefNo(String contractRefNo) {
		this.contractRefNo = contractRefNo;
	}

	public long getContractSeq() {
		return this.contractSeq;
	}

	public void setContractSeq(long contractSeq) {
		this.contractSeq = contractSeq;
	}

	public String getContractSeries() {
		return this.contractSeries;
	}

	public void setContractSeries(String contractSeries) {
		this.contractSeries = contractSeries;
	}

	public String getContractUnitPeriodsId() {
		return this.contractUnitPeriodsId;
	}

	public void setContractUnitPeriodsId(String contractUnitPeriodsId) {
		this.contractUnitPeriodsId = contractUnitPeriodsId;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedByName() {
		return this.createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public Date getDateOnInvoice() {
		return this.dateOnInvoice;
	}

	public void setDateOnInvoice(Date dateOnInvoice) {
		this.dateOnInvoice = dateOnInvoice;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getExchangeRate() {
		return this.exchangeRate;
	}

	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public String getFloorZoneCode() {
		return this.floorZoneCode;
	}

	public void setFloorZoneCode(String floorZoneCode) {
		this.floorZoneCode = floorZoneCode;
	}

	public String getInterfaceNo() {
		return this.interfaceNo;
	}

	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public String getLastUpdByName() {
		return this.lastUpdByName;
	}

	public void setLastUpdByName(String lastUpdByName) {
		this.lastUpdByName = lastUpdByName;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getPropertyTypeCode() {
		return this.propertyTypeCode;
	}

	public void setPropertyTypeCode(String propertyTypeCode) {
		this.propertyTypeCode = propertyTypeCode;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public long getRevisionNumber() {
		return this.revisionNumber;
	}

	public void setRevisionNumber(long revisionNumber) {
		this.revisionNumber = revisionNumber;
	}

	public String getSapCompanyCode() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public long getSeqNo() {
		return this.seqNo;
	}

	public void setSeqNo(long seqNo) {
		this.seqNo = seqNo;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getTypeOfContract() {
		return this.typeOfContract;
	}

	public void setTypeOfContract(String typeOfContract) {
		this.typeOfContract = typeOfContract;
	}

	public BigDecimal getUnduePeriodAmount() {
		return this.unduePeriodAmount;
	}

	public void setUnduePeriodAmount(BigDecimal unduePeriodAmount) {
		this.unduePeriodAmount = unduePeriodAmount;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}
}